<%@page import="com.mongodb.DBObject"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.mongodb.DBCursor"%>
<%
	DBObject dbObject = (DBObject)request.getAttribute("cursor");

	if(dbObject != null)
	{
		
		ArrayList<String> string = new ArrayList<String>();
		string = (ArrayList<String>) dbObject.get("friend");

		for (int i = 0; i < string.size(); i++) {
			out.print(string.get(i)+" | <span style='color:red'>friend</span><br/>");
		}
		ArrayList<String> string1 = new ArrayList<String>();
		string1 = (ArrayList<String>) dbObject.get("me");
		
		for (int i = 0; i < string1.size(); i++) {
			out.print(string1.get(i)+" | <span style='color:red'>me</span><br/>");
		}
	}
%>